import React, { Component } from 'react';
import { Carousel } from 'antd';

export default class SwiperView extends Component {
  static propTypes = {};

  render() {
    let films = this.props.films || [];
    return (
      <div className="index-swiper-view">
        <Carousel autoplay>
          {
            films.map(item=> {
              return (
                <img src={item.cover&&item.cover.origin} alt="" key={item.id}/>
              )
            })
          }
        </Carousel>
      </div>
    );
  }
}
